package artid.com.arttogo.bean;

import org.json.JSONObject;

import java.io.Serializable;

/**
 * 
*    
* 项目名称：ArtworkArt   
* 类名称：AuctionCommentParser   
* 类描述：拍卖行-评论列表实体类+解析   
* 创建人：耿卫斌   
* 创建时间：2017-3-13 上午10:21:42   
*
 */
public class AuctionCommentParser extends AppItem implements Serializable {
	private static final long serialVersionUID = 1L;
	private String create_time;//评论时间
	private String id;//
	private String uid;//藏家id
	private int isme;//是否是本人用于评论删除
	private String realname;//藏家名字
	private String content;//评论内容
	private String type;//
	private String messid;//评论ID
	private String imgurl;//评论人头像
	private int is_commend;//是否点赞
	private String comNum;//点赞数
	private int status;//状态0:表示评论；1表示回复
	private String replyname;//回复姓名如果是评论为“”；回复为回复人姓名
	private int score;//评分
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		create_time = obj.optString("create_time");
		id = obj.optString("id");
		uid = obj.optString("uid");
		isme = obj.optInt("isme");
		realname = obj.optString("realname");
		content = obj.optString("content");
		type = obj.optString("type");
		messid = obj.optString("messid");
		imgurl = obj.optString("imgurl");
		is_commend = obj.optInt("is_commend");
		comNum = obj.optString("comNum");
		status = obj.optInt("status");
		replyname = obj.optString("replyname");
		score = obj.optInt("score");
	}
	public String getCreate_time() {
		return create_time;
	}
	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public int getIsme() {
		return isme;
	}
	public void setIsme(int isme) {
		this.isme = isme;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getMessid() {
		return messid;
	}
	public void setMessid(String messid) {
		this.messid = messid;
	}
	public String getImgurl() {
		return imgurl;
	}
	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}
	public int getIs_commend() {
		return is_commend;
	}
	public void setIs_commend(int is_commend) {
		this.is_commend = is_commend;
	}
	public String getComNum() {
		return comNum;
	}
	public void setComNum(String comNum) {
		this.comNum = comNum;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getReplyname() {
		return replyname;
	}
	public void setReplyname(String replyname) {
		this.replyname = replyname;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public AuctionCommentParser() {
		super();
	}
	public AuctionCommentParser(String create_time, String id, String uid,
								int isme, String realname, String content, String type,
								String messid, String imgurl, int is_commend, String comNum,
								int status, String replyname, int score) {
		super();
		this.create_time = create_time;
		this.id = id;
		this.uid = uid;
		this.isme = isme;
		this.realname = realname;
		this.content = content;
		this.type = type;
		this.messid = messid;
		this.imgurl = imgurl;
		this.is_commend = is_commend;
		this.comNum = comNum;
		this.status = status;
		this.replyname = replyname;
		this.score = score;
	}
	@Override
	public String toString() {
		return "AuctionCommentParser [create_time=" + create_time + ", id="
				+ id + ", uid=" + uid + ", isme=" + isme + ", realname="
				+ realname + ", content=" + content + ", type=" + type
				+ ", messid=" + messid + ", imgurl=" + imgurl + ", is_commend="
				+ is_commend + ", comNum=" + comNum + ", status=" + status
				+ ", replyname=" + replyname + ", score=" + score + "]";
	}
}
